package com.health.income.server.service.impl;

import com.health.common.domain.PmsMedic;
import com.health.common.domain.PmsSymptomTags;
import com.health.common.redis.service.RedisService;
import com.health.income.server.mapper.SymptomTagsMapper;
import com.health.income.server.service.SymptomTagsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SymptomTagsServiceImpl
 * @Description 描述
 * @Author Qiu Feng
 * @Date 2025/2/25 15:25
 */
@Service
public class SymptomTagsServiceImpl implements SymptomTagsService {
    @Autowired
    private SymptomTagsMapper symptomTagsMapper;
    @Autowired
    private RedisService redisService;

    @Override
    public List<PmsSymptomTags> getSymptomTagsAll() {
        return symptomTagsMapper.getSymptomTagsAll();
    }

    @Override
    public List<PmsMedic> getMedicList(PmsMedic pmsMedic) {
        return symptomTagsMapper.getMedicList(pmsMedic);
    }

    @Override
    public void MedicList() {
        List<PmsMedic> medicList = symptomTagsMapper.MedicList();
        //存入redis
        redisService.setCacheList("MEIDC_LIST", medicList);
    }
}
